#include "cshared.h"

#include <QDebug>

string CShared::picbed = "https://gitee.com/nisosaikou/pb/raw/master/img/";

CShared::CShared(){
}


void CShared::getCurrentTime(string& out_time )
{
    time_t timep;
    struct tm* p;
    time(&timep);
    p = gmtime(&timep);
    char buffer[64];
    memset(buffer, 0, 64);
    sprintf(buffer, "%04d-%02d-%02d %02d:%02d:%02d", 1900 + p->tm_year, 1 + p->tm_mon, p->tm_mday, 8 + p->tm_hour, p->tm_min, p->tm_sec);

    out_time.append(buffer);
}
